package me.zhyd.hunter.config.platform;

import me.zhyd.hunter.config.HunterConfig;

/**
 * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
 * @version 1.0
 * @since 1.8
 */
public class IteyePlatform extends BasePlatform {

    public IteyePlatform() {
        super(Platform.ITEYE.getPlatform());
    }

    @Override
    public HunterConfig process(String url) {
        HunterConfig config = this.get(url);
        String domain = config.getDomain();
        String uid = domain.split("\\.")[0];
        config.setUid(uid);
        return config;
    }
}
